<?php
/**
 * Created by PhpStorm.
 * User: zhj
 * Date: 2019/2/25
 * Time: 14:25
 */
namespace app\common\model;
class TypeMajor extends ModelBase{
    public function insetData($data)
    {
        return $this->insertAll($data);
    }

    public static function getIdByTypeMajor($where=1)
    {
       return  self::where($where)->select();
    }
}